home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Almathera Ten Pack 3: CDPD 3
/
Almathera Ten on Ten - Disc 3: CDPD3.iso
/
ab20
/
ab20_archive
/
applications
/
toolmanager-1.5.lzh
/
ToolManager
/
Scripts
/
view.sh
< prev
Wrap
Text File
|
1991-10-10
|
884b
|
37 lines
#
# view.sh - display file of any type
#
set file $_passed
alias center "%a echo @center( $a 77 )
if $file <> ""
class.sh toolmanager
if @getclass( $file ) = dir;set file $file""!*.info;endif
action view $file
set err $_lasterr
if $err = 10
center
center "I could not determine the type of this file."
endif
if $err = 11
center
center "I don't know how to view this type of file."
endif
if $err = 12
center
center "I could not execute the program to view this file."
endif
else
center
center "* * * VIEW * * *"
center
center
center "Drop any text/graphic/archive/sound icon on this icon."
center "It will be displayed, listed or played, respectively"
center
center "To modify the various programs used for displaying, read
center "the chapter 'object oriented features' in your csh.doc.
center
center
center "Click close button when done
endif